<?php
// +----------------------------------------------------------------------
// | CatchAdmin [Just Like ～ ]
// +----------------------------------------------------------------------
// | Copyright (c) 2017~{$year} http://catchadmin.com All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( https://github.com/yanwenwu/catch-admin/blob/master/LICENSE.txt )
// +----------------------------------------------------------------------
// | Author: JaguarJack [ njphper@gmail.com ]
// +----------------------------------------------------------------------

// you should use `$router`
/* @var think\Route $router */

$router->group(function () use ($router){
        //服务项
        $router->resource('fwitems', '\catchAdmin\mbqy\controller\Fwitems');
        $router->post('fwitems/get_up_data', '\catchAdmin\mbqy\controller\Fwitems@get_up_data');
        $router->post('fwitems/save', '\catchAdmin\mbqy\controller\Fwitems@save');
        $router->post('fwitems/update', '\catchAdmin\mbqy\controller\Fwitems@update');
        $router->post('fwitems/delete', '\catchAdmin\mbqy\controller\Fwitems@delete');
        $router->get('getfwitems', '\catchAdmin\mbqy\controller\Fwitems@getfwitems');
        //服务内容
        $router->resource('fwcontent', '\catchAdmin\mbqy\controller\Fwcontent');
        $router->post('fwcontent/save', '\catchAdmin\mbqy\controller\Fwcontent@save');
        $router->post('fwcontent/update', '\catchAdmin\mbqy\controller\Fwcontent@update');
        $router->post('fwcontent/delete', '\catchAdmin\mbqy\controller\Fwcontent@delete');
        $router->get('getfwcontent', '\catchAdmin\mbqy\controller\Fwcontent@getfwcontent');
        $router->get('getfwcontentuprow', '\catchAdmin\mbqy\controller\Fwcontent@getuprow');
        //服务包
        $router->resource('qyfw', '\catchAdmin\mbqy\controller\Qyfw');
        $router->post('qyfw/save', '\catchAdmin\mbqy\controller\Qyfw@save');
        $router->post('qyfw/update', '\catchAdmin\mbqy\controller\Qyfw@update');
        $router->post('qyfw/delete', '\catchAdmin\mbqy\controller\Qyfw@delete');
        $router->post('qyfw/uploadfile', '\catchAdmin\mbqy\controller\Qyfw@uploadfile');
        $router->get('getfwpackage', '\catchAdmin\mbqy\controller\Qyfw@getfwpackage');
        //绑定
        $router->resource('fwbind', '\catchAdmin\mbqy\controller\Fwbind');
        $router->post('fwbind/save', '\catchAdmin\mbqy\controller\Fwbind@save');
        $router->post('fwbind/update', '\catchAdmin\mbqy\controller\Fwbind@update');
        $router->post('fwbind/delete', '\catchAdmin\mbqy\controller\Fwbind@delete');
        $router->get('getfwbinduprow', '\catchAdmin\mbqy\controller\Fwbind@getuprow');

        //测试
        $router->post('qyfw/test', '\catchAdmin\mbqy\controller\Qyfw@test');
})->middleware('auth');

